Computer arrangement using non-refreshed DRAM

ABSTRACT

A computer arrangement with a processor ( 5 ) and at least one memory unit ( 7, 9, 11, 13 ) connected to the processor ( 5 ) and including dynamic random access memory ( 13 ), wherein the computer arrangment is arranged to use but not to refresh at least part of the dynamic random access memory ( 13 ) while running a program.

FIELD OF THE INVENTION

The present invention relates to a computer arrangement comprising a processor and at least one memory unit connected to the processor and comprising dynamic random access memory having a predetermined retention time, the computer arrangement being arranged for running a predetermined program on the processor while temporarily storing data during a storage time in at least part of the dynamic random access memory.

PRIOR ART

EP-A-0 917 152 discloses a semiconductor circuit and a method of controlling such a circuit. The circuit comprises dynamic random access memory (DRAM). The object is to decrease the frequency of times of refreshing operations of such DRAM in order to achieve power consumption. This object is obtained refreshing only those rows in the DRAM that contain valid data used by the logic portion of the circuit. DRAM portions that do not contain valid data are not refreshed thus saving time and power.

Similar techniques of refreshing only those portions of DRAM that contain valid data are disclosed by U.S. Pat. Nos. 5,1148,546, 5,283,885, and 5,469,559.

OBJECTIVES

The general objective of the present invention is to provide a method and arrangement that provide an even more effective use of DRAM and, ultimately, avoid any refreshment of DRAM.

Traditionally, all smart cards have chips which are implemented with static random access memory (RAM) cells. By using memory array imaging techniques it may be possible to maliciously extract data from such RAM. Therefore, in an embodiment, it is an objective of the invention to apply such DRAM in smart cards to reduce the risk of maliciously break-in into RAM cells by scanning data retained therein.

DESCRIPTION OF THE INVENTION

Therefore, in accordance with the invention the storage time is shorter than the retention time and the computer arrangement is arranged to use but not to refresh the at least part of the dynamic random access memory comprising the data during the running of the program.

The invention is based on the observation that in specific fields of use, notably (contactless) smart cards, the inherent time requirements are such that limited retention without refresh of data by DRAM cells is no longer an obstacle to effective use thereof.

A DRAM cell typically utilizes a single (MOS) transistor whereas a traditional RAM cell of the static type requires four or more (MOS) transistors. In accordance with the invention, part of the DRAM is not refreshed while running a program. Since no refresh operation is used the time that data is retained in the DRAM cells depends on the electrical capacity of the DRAM cell. The retention time depends on the design parameters of the cell. In many smart card applications, processing of data must be completed in less than 150 ms. DRAM cells having a retention time of for instance a few hundreds of ms can easily be designed.

Thus, data necessary for carrying out some computations can be retained long enough in DRAM cells properly designed. Since after the retention time, all data will be lost, the invention provided improves security by increasing the difficulty of maliciously extracting data from the memory.

One way in which the invention may be implemented is by not connecting the at least part of the dynamic random access memory to refresh circuitry. An alternative is to disable a refresh function of existing refresh circuitry for the at least part of the dynamic random access memory.

Since a single DRAM cell requires less space on a silicon chip than does one static RAM cell, using the same size of chip area results in having a larger memory capacity. Alternatively, the same number of necessary memory cells results in a smaller silicon area required. This is especially important for smart cards where RAM is typically the relatively largest area component. Therefore, the present invention also results in the possibility of reducing costs of smart card chips.

Therefore, the present invention also relates to a smart card provided with a computer arrangement as defined above.

However, the invention does not only relate to smart cards or the like but also to further computers like terminals arranged to communicate with such cards.

To that end the present invention relates to a terminal provided with a terminal processor and a terminal communication interface connected to said terminal processor and arranged for communicating with a computer arrangement comprising a processor, a communication interface and at least one memory unit, said communication interface and said at least one memory unit being connected to said processor, said at least one memory unit comprising memory for storing a computer program with a predetermined sequence of instructions and dynamic random access memory, said computer arrangement being arranged to use but not to refresh at least part of said dynamic random access memory while running said program, wherein said terminal processor is arranged to carry out the following steps:

-   (a) emulating the computer program; -   (b) analyzing time period necessary for the processor of the     computer arrangement to carry out each instruction of the sequence     of instructions and determining all retention times necessary for     the processor to temporarily store data in the at least part of the     dynamic random access memory during carrying out the sequence of     instructions; -   (c) establishing sets of consecutive instructions for which the     retention times are longer than a predetermined refresh time; -   (d) adding additional instructions to the sets of consecutive     instructions in order to obtain modified retention times for those     sets of consecutive instructions which modified retention times are     shorter than the predetermined refresh time.

It is observed that in this definition the term “terminal” is to be interpreted broadly, as including any type of computer arrangement arranged to communicate with the computer arrangement comprising the DRAM memory as defined above. Moreover, the term “terminal processor” is not intended to limit this processor to one single processor. It may include several parallel processing and communicating sub-processors, some of which are even allowed to be physically located outside the terminal.

By using such a further computer arrangement, it is certain that data to be stored by the program to be carried out by the processor need not be retained longer in the DRAM cells than the retention time of the DRAM cells. Thus, indeed no refresh circuitry is necessary for the processor to carry out its computer program.

In a further embodiment, the invention relates to a method of running a program on a computer arrangement comprising a processor and at least one memory unit connected to said processor and comprising dynamic random access memory having a predetermined retention time, the method comprising the step of running a predetermined program on said processor while temporarily storing data during a storage time in at least part of said dynamic random access memory, wherein said storage time is shorter than said retention time and said method further comprises the step of using but not refreshing said at least part of said dynamic random access memory comprising said data during said running of said program.

Moreover, the invention relates to a computer program comprising instructions executable on a computer arrangement comprising a processor and at least one memory unit connected to said processor and comprising dynamic random access memory having a predetermined retention time, the computer program while running on said computer arrangement comprising the step of temporarily storing data during a storage time in at least part of said dynamic random access memory, wherein said storage time is shorter than said retention time and said computer program further comprises the step of using but not refreshing said at least part of said dynamic random access memory comprising said data during said running of said program.

Finally, the invention relates to a computer readable medium comprising a computer program as defined above.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention will be explained with reference to some drawings which are only intended to illustrate the present invention and not to limit its scope which is only limited by the appended claims.

FIG. 1 shows a smart card and a terminal arranged to communicate with one another;

FIG. 2 schematically shows a computer arrangement using non-refreshed DRAM;

FIG. 3 schematically shows a division of the DRAM into four memory banks;

FIG. 4 schematically shows using some memory cells in a word-line arrangement for checking the proper operation of the DRAM cells.

FIG. 5 shows a flow diagram of steps to be taken to check whether or not the content of the DRAM cells is still valid;

FIG. 6 shows a flow diagram of steps to be taken to amend a computer program such that the maximum retention times of data in memory cells are shorter than a specified retention time of the DRAM cells.

DESCRIPTION OF THE PREFERRED EMBODIMENT

The present invention will be illustrated with reference to a smart card application. However, it is to be understood that the concept of the present invention can be used outside the field of smart cards.

FIG. 1 shows a smart card 1 provided with a communication interface 3. The communication interface 3 is shown to include metallic pads. However, in contact-free embodiments, the interface comprises an antenna, e.g., a coil 3′, shown in FIG. 1 with dashed lines. Such a smart card is widely known. FIG. 1 also schematically shows a terminal 2 which is arranged to communicate with the smart card 1. Therefore, the terminal 2 comprises a communication interface 4 arranged to communicate with interface 3 of the smart card 1. The technical details for such contacting are known to persons skilled in the art.

The terminal 2 comprises a processor 6 connected to the communication interface 4. Through its communication interface 4, the processor 6 is able to communicate with the processor (not shown in FIG. 1) of the smart card 1.

The processor 6 is shown to be one block. However, if preferred, the processor 6 may be implemented as several sub-processors communicating with one another each dedicated to perform a predetermined task. One or more of said sub-processors might be located outside the terminal 2. Preferably, the processor 6 is (or the sub-processors are implemented as a computer with suitable software. However, if desired, they may be implemented as dedicated digital circuits.

As shown in FIG. 2, the communication interface 3 of the smart card 1 is connected to a processor 5. In accordance with the invention, the processor 5 is connected to at least a first memory area 13 comprising DRAM (Dynamic Random Access Memory) cells.

In accordance with one embodiment of the present invention, at least part of the DRAM 13 is not connected to refresh circuitry. If the logic arrangement shown in FIG. 2 is used in smart card applications, preferably no refresh circuitry is applied at all. This saves space and circuitry in such a single chip computer. Of course, also in other applications one may decide to apply no refresh circuitry at all.

The DRAM 13 may be connected to a separate logic circuit 15, the operation of which will be explained hereinafter. The logic circuit 15 is connected to either a computing unit 17 or the communication interface 3. However, it is also possible that the logic circuit 15 is connected to both the computing unit 17 and the communication interface 3. Actually, processor 5, logic circuit 15 and computing unit 17 may be implemented as one processing unit. Moreover, all of the different units shown in FIG. 2 may be implemented as a single integrated chip.

The processor 5 is, preferably, also connected to a second memory area 11 comprising SRAM (Static Random Access Memory) cells.

Preferably, non-volatile memory such as EEPROM 7 connected to the processor 5 is also present. In most applications, also ROM (Read Only Memory) 9 connected to the processor 5 is provided.

If present, the computing unit 17 is, preferably, also connected to the ROM 9, the EEPROM 7, and the SRAM 11.

The ROM 9 and possibly the SRAM 11 and the EEPROM 7 contain the computer program that determines the behavior of the processor 5, and possibly also of the computing unit 17, when the processor 5 is used as a responding component in inter-computer communications through interface 3. In smart card applications, such inter-computer communications typically consist of command and response exchanges, which are constraint to a very short duration. For a contactless smart card, the time available for communication is typically in the order of 150 ms. In that short time period the smart card 1 receives one or more data transmissions that function as commands. The processor 5 processes the commands which typically include cryptographic computations and instructions to update the non-volatile memory 7. At the end of its processing, the processor 5 sends its response.

So far, the use of DRAM cells has not seriously been considered for smart card applications. They were considered to be too unreliable due to their inherent limited retention time and not to be cost-effective due to the necessary additional on-chip refresh logic circuitry to compensate for the limited retention time.

Now, contrary to the prior art, the arrangement according to the invention comprises DRAM cells 13 of which, in a preferred embodiment, at least part is not connected to refresh circuitry. Due to the field of application, the timing constraints are such that refresh circuitry is superfluous. Such timing constraints are most prominent in contactless smart card applications where due to field strength fluctuations experienced by the smart card chip, as it is moved by its user across a communication range of a terminal, all data exchange and processing must be completed in less than 150 ms.

However, also in other fields than contactless smart card applications the invention may advantageously be applied. In general, in accordance with the invention, a predetermined program is running on the processor that needs data to be temporarily stored on the dynamic random access memory 13 during a necessary storage time. This storage time for all portions of valid data during running the program, i.e., carrying out consecutive program steps, is such that it is shorter than the retention time of the dynamic random access memory 13 used. Thus, no refresh cycles for the DRAM are necessary anymore and refreshment will not be used anymore.

In practice, chips implemented according to the invention will remain having a limited RAM storage implemented with static cells to store data such as the return stack or essential security or program state values, the RAM consisting of, e.g., 128 bytes. As the basic memory cell of a DRAM is typically at least four times smaller than the basic memory cell of a SRAM, a chip in accordance with the invention can in average provide four times more memory at equal costs.

A further advantage of the present invention can be obtained by realizing the DRAM 13 not as a single controlled array but as two or more independently controlled simultaneously accessible banks 13(1), 13(2), 13(3), 13(4), as shown in FIG. 3. FIG. 3 shows four such banks, however, it is to be understood that the number of banks may be different. Using a number of different banks would facilitate the use of additional logic circuitry on a single chip computer arrangement. Such additional logic circuitry may relate to a coprocessor in the form of an additional computing unit 17 which is arranged to carry out additional cryptographic computations while using only one of the banks, e.g., bank 13(1).

To that end all banks 13(1) . . . 13(4) are connected to an address bus, a data bus and read and write lines (see FIG. 3). The signals carried by these different lines are known to a person skilled in the art. By means of the address bus, the computing unit 17 is able to address memory cells in bank 13(1) whereas these memory cells are, then, not accessible to processor 5. By providing a separate computing unit 17, computations can be carried out simultaneously, thus, ensuring that a process can be carried out in the required timing constraints of e.g. 150 ms.

It is observed that FIG. 3 is very schematic. The arrangement is such that at least one of the memory banks 13(1) . . . 13(4) can be selected independently from the other memory banks. This can be done by multiplexing techniques on the address bus, data bus, read and write lines. However, this may also be done by providing separate address busses, data busses, read and write lines for each independent memory bank, as is known to persons skilled in the art.

Instead of or in addition to using a computing unit 17, which accesses the DRAM 13 through the logic circuit 15, a DMA (Direct Memory Access) communication procedure can be provided for. To that end, the logic circuit 15 is, then, connected to the communication interface 3 such that an external processor (e.g., processor 6 of the terminal 2) is able to directly access DRAM 13. Preferably, through such a DMA communication procedure, the external processor is only able to obtain access to one of the banks 13(1) . . . 13(4). This all could increase the speed of execution and allow for reduced power consumption. Non-traditional CPU design, e.g. RISC (=Reduced Instruction Set Computer), might also benefit from multi-banked RAM.

As customary, the DRAM cells may be organized into a rectangular structure consisting of a number of word-lines, each containing a number of bit memory cells to store data for a multiple of bytes. One such word-line is schematically shown in FIG. 4. To safeguard against unexpected longer storage periods than the maximum retention time of the individual DRAM cells which might result in using data incorrectly retrieved from the DRAM cells, each word-line in the memory area may comprise one or more “witness” storage cells. FIG. 4 shows a situation in which four such “witness” storage cells at the right-hand side of the word-line are used. As shown in step 50 of FIG. 5, these four storage cells, at the outset of a write action into the word-line, are provided with a predetermined pattern of data: in FIG. 4 this pattern is 0 1 1 0. Of course, an other pattern of predetermined logic values may be used. Also, the number of “witness” storage cells may differ. As shown in step 52 of FIG. 5, the “witness” cells are read each time data stored in the word-line cells is read by processor 5 or by any other additional logic processor, such as computing unit 17 (not shown in FIG. 4). Checking logic 19 connected to processor 5 (or any other additional processor present) is arranged to check whether the data pattern read from the “witness” cells still equals the predetermined logic pattern; step 54 in FIG. 5. If the predetermined logic pattern is not present anymore, the checking logic 19 will send a warning signal to the processor 5 (or any other processor concerned); step 56. Such a warning signal will, then, be interpreted as a failure of any data read by the processor 5 (or any other processor concerned). An appropriate execution exception then prevents normal completion of the actual program. If no failure has been detected, the actual program can continue running. This mechanism may be deployed to fend off attacks against the chip's integrity which might be mounted by artificially elongating the processing time to cause incorrect data to be used in computations.

Although, in FIG. 4, the checking logic 19 is shown as a separate unit it is to be understood that the checking logic 19 may be part of the processor 5 (or any other processor).

The “witness” storage cells may be part of the normally designed word-line. However, alternatively, a normally designed word-line may be extended by such “witness” storage cells. In one embodiment, these “witness” storage cells are designed such that their data retention times are significantly shorter, e.g. 5–10%; than the data retention times of the other memory cells on the same word-line. Thus, upon detecting that the content of the “witness” storage cells is correct it is even more likely that the content of the other storage cells of the same word-line is still correct by the time of reading.

In a further alternative embodiment, after having manufactured the DRAM cells it is tested which memory cells in a word line show the shortest retention times. One or more of these cells may then be used as “witness” cells.

To support obtaining the benefits of the invention and to ascertain conformance to the timing constraints of the DRAM 13, the software loaded in e.g. ROM 9 or EPROM 7 may be preprocessed and optimized with respect to storage timing by processor 6 of terminal 2. The processor 6 is arranged to compile that software. During pre-processing, the processor 6 analyzes the time period necessary for the processor 5 to carry out each instruction of the software and all retention times necessary for the processor 5 (or any other processor like the computing unit 17 using the DRAM 13) to temporarily store data in the DRAM 13 during running the software.

FIG. 6 shows steps carried out by processor 6 for such a preprocessing program. After having emulated the program, step 60, the processor 6 analyzes all sections of executable code of the software, step 62, and computes the time between updates of stored data used by the code sections, step 64. Then, the processor 6 establishes sets of consecutive instructions in the program for which the retention times in the DRAM 13 would be longer than the specified refresh time of the DRAM 13, step 66. Known techniques for code rearrangement, such as unrolling program loops and inserting additional instructions to explicit read-and-then-write storage locations, i.e. a kind of artificial refresh operation, are used to guarantee that all data stored by the software in the DRAM 13 is used well before the end of the memory cell retention period, step 68. Without using traditional refresh circuitry, then, still all DRAM cells are refreshed in time.

Above, the invention has been illustrated with reference to an embodiment in which the Dram 13 is physically not connected to a refresh circuitry. However, the principles of the invention may also be applied by disabling the refresh functionality of an existing computer arrangement comprising a refresh circuitry. In such an embodiment, existing refresh circuitry need not be taken away. 

1. A computer arrangement comprising a processor and at least one memory unit connected to said processor and comprising dynamic random access memory having a predetermined retention time, wherein the retention time is the time data is retained in said dynamic random access memory when no refresh operation is used, said computer arrangement being arranged for running a program having sections of executable code on said processor while temporarily storing data during a storage time in at least part of said dynamic random access memory, wherein said storage time is the time between updates of stored data used by the sections of executable code, and wherein the storage time is shorter than said retention time and said computer arrangement is arranged to use but not to refresh said at least part of said dynamic random access memory comprising said data during said running of said program.
 2. A computer arrangement according to claim 1, wherein said at least part of said dynamic random access memory is not connected to refresh circuitry.
 3. A computer arrangement according to claim 1 or 2, wherein said dynamic random access memory is divided into two or more memory banks each memory bank being independently accessible for storing or retrieving of data.
 4. A computer arrangement according to claim 1, wherein a further part of said dynamic random access memory is controlled by additional logic circuitry.
 5. A computer arrangement according to claim 4, wherein said additional logic circuitry is connected to a communication interface that enables an external computing unit to access the dynamic random access memory.
 6. A computer arrangement according to claim 4, comprising an additional computing unit connected to said additional logic circuitry.
 7. A computer arrangement according to claim 1, implemented as single chip arrangement.
 8. A smart card including a computer arrangement according to claim
 1. 9. A computer arrangement comprising a processor and at least one memory unit connected to said processor and comprising dynamic random access memory having a predetermined retention time, said computer arrangement being arranged for running a predetermined program on said processor while temporarily storing data during a storage time in at least part of said dynamic random access memory, wherein said storage time is shorter than said retention time and said computer arrangement is arranged to use but not to refresh said at least part of said dynamic random access memory comprising said data during said running of said program, wherein said dynamic random access memory is provided with a plurality of word lines, each word line comprising an array of memory cells, at least one of said word lines comprising a series of one or more memory cells connected to checking logic circuitry connected to said processor and arranged to carry out the following steps: (a) writing predetermined logic values into said series of one or more memory cells whenever the processor writes data into said at least one word line; (b) reading actual content of said series of one or more memory cells whenever said at least one word line is read by said processor; (c) checking whether said actual content equals said predetermined logic values; and (d) transmitting a warning signal to said processor upon detecting that said actual content does not equal said predetermined values.
 10. A computer arrangement according to claim 9, wherein said series of one or more memory cells of said at least one word line is implemented using memory cells with less memory retention time than the other memory cells in said at least one word line.
 11. A smart card comprising: a processor that executes a program for processing a command received from an external terminal; a dynamic random access memory that stores data for a storage time that is shorter than a retention time of the dynamic random access memory; and refresh circuitry that is configured to refresh the dynamic random access memory, wherein the refresh circuitry is disabled and the program uses the stored data before expiration of the retention time after which the stored data is unavailable to the program.
 12. A method of running a program on a computer arrangement comprising a processor and at least one memory unit connected to said processor and comprising dynamic random access memory having a predetermined retention time, wherein the retention time is the time retained in said dynamic random access memory when no refresh operation is used, the method comprising the step of running a predetermined program having sections of executable code on said processor while temporarily storing data during a storage time in at least part of said dynamic random access memory, wherein said storage time is the time between updates of stored data used by the sections of executable code, and wherein the storage time is shorter than said retention time and said method further comprises the step of using but not refreshing said at least part of said dynamic random access memory comprising said data during said running of said program.
 13. A computer-readable medium comprising a computer program including sections of executable code executable on a computer arrangement comprising a processor and at least one memory unit connected to said processor and comprising dynamic random access memory having a predetermined retention time, wherein the retention time is the time retained in said dynamic random access memory when no refresh operation is used, the computer program while running on said computer arrangement performing the step of temporarily storing data during a storage time in at least part of said dynamic random access memory, wherein said storage time is the time between updates of stored data used by the sections of executable code, and wherein the storage time is shorter than said retention time and said computer program further comprises the step of using but not refreshing said at least part of said dynamic random access memory comprising said data during said running of said program.
 14. A smart card that communicates with an external terminal, the smart card comprising: a processor that executes a program for processing a command received from the external terminal; and a dynamic random access memory that stores data for a storage time that is shorter than a retention time of the dynamic random access memory, wherein the program uses the stored data before expiration of the retention time after which the stored data is unavailable to the program.
 15. The smart card of claim 14, wherein the external terminal accesses the stored data before expiration of the retention time.
 16. The smart card of claim 14, wherein the program includes instructions that have been analyzed to ensure the program uses data before expiration of the retention period.
 17. The smart card of claim 14, wherein the smart card includes checking logic that is configured to write predetermined logic values in the dynamic random access memory that are used to validate the stored data when the stored data is being read from the dynamic random access memory.
 18. The system smart card of claim 17, wherein the checking logic writes the predetermined logic values into a series of one or more memory cells of the dynamic random access memory when the processor writes data to a corresponding word line in the dynamic random access memory.
 19. The smart card of claim 14, wherein the dynamic random access memory is implemented with memory banks and the stored data is dispersed among the memory banks, and wherein the smart card includes a computing unit that accesses stored data located on a first memory bank while the processor access stored data located on a second memory bank.
 20. A method of processing information in a smart card having a processor, a dynamic random access memory having a retention time, and refresh circuitry, the method comprising: disabling the refresh circuitry; storing data in the dynamic random access memory for a storage time that is shorter than the retention time; and executing, by the processor, program code that uses the stored data before expiration of the retention time after which the stored data is unavailable to the program code.
 21. The method of claim 20, wherein the smart card communicates with an external terminal and the method further includes: accessing, by the external terminal, the stored data before expiration of the retention time.
 22. The method of claim 20, further including: analyzing the program code for instructions that use the stored data before expiration of the retention time.
 23. The method of claim 20, wherein the dynamic random access memory is connected to checking logic, and the method further includes: writing, by the checking logic, predetermined logic values in the dynamic random access memory that are used to validate the stored data when the stored data is being read from the dynamic random access memory.
 24. The method of claim 23, further including: writing, by the checking logic, the predetermined logic values into a series of one or more memory cells of the dynamic random access memory when the processor writes data to a corresponding word line in the dynamic random access memory.
 25. The method of claim 20, wherein the smart card includes a computing unit and the dynamic random access memory is implemented with memory banks and the stored data is dispersed among the memory banks, and wherein the method further includes: accessing, by the computing unit, stored data located on a first memory bank while the processor access stored data located on a second memory bank. 